package com.xiaodu.acer.phoneplay.presenter.contract;

import com.xiaodu.acer.phoneplay.bean.SearchHistoryBean;
import com.xiaodu.acer.phoneplay.bean.SearchResult;

import java.util.List;

import io.reactivex.Observable;
import library.base.BaseBean;
import library.base.BaseModel;
import library.base.BaseView;

/**
 * @author 小杜
 *         邮箱:m15701207383@163.com
 * @version V1.0
 * @Description: ${TODO}(用一句话描述该文件做什么)
 * @date 2018/1/12 11:00
 */

public interface SearchContract {

    interface View extends BaseView {
        void showSearchHistory(List<SearchHistoryBean> list);
        void showSuggestions(List<String> list);
        void showSearchResult(SearchResult result);
        void deleteSearchHistory();
    }

    interface Model extends BaseModel {

        Observable<BaseBean<List<String>>> getSuggestion(String keyword);

        Observable<BaseBean<SearchResult>> search(String keyword);
    }
}
